package com.zhanggm.student.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhanggm.student.entity.StudentHobbyRelation;
import com.zhanggm.student.mapper.StudentHobbyRelationMapper;
import com.zhanggm.student.service.IStudentHobbyRelationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 学生爱好关系表 服务实现类
 * </p>
 *
 * @author zhanggm
 * @since 2020-10-21
 */
@Service
public class StudentHobbyRelationServiceImpl extends ServiceImpl<StudentHobbyRelationMapper, StudentHobbyRelation> implements IStudentHobbyRelationService {

    @Override
    public List<Integer> getHobbyIdListByStuId(Integer stuId) {
        return getBaseMapper().selectHobbyIdList(stuId);
    }
}
